from django.conf.urls import url
from rest_framework.routers import SimpleRouter,DefaultRouter
from . import views

urlpatterns = [

]

#1,创建router对象
router = DefaultRouter()

#2,注册视图集
router.register('infos',views.AreaViewSet,base_name="area")

#3,添加路由到urlpatterns
urlpatterns += router.urls

